/* 强制覆盖所有代码块样式 */
.markdown-body pre[class*="language-"],
.v-md-editor pre[class*="language-"],
.v-md-editor code[class*="language-"],
.v-md-pre-wrapper,
.v-md-preview pre[class*="language-"],
.v-md-preview code[class*="language-"],
pre[class*="language-"],
code[class*="language-"],
.prism-editor__code,
.prism-editor__line,
.prism-editor__container,
.prism-editor__editor,
.v-md-editor__editor pre,
.v-md-editor__preview pre {
  position: relative !important;
  border-radius: 6px !important;
  margin: 1rem 0 !important;
  overflow: visible !important;
  background-color: #1e1e1e !important;
  border: none !important;
  padding: 2.5rem 1rem 1rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  color: #d4d4d4 !important;
  font-family: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", monospace !important;
}

/* macOS 窗口按钮 */
.markdown-body pre[class*="language-"]::before,
.v-md-editor pre[class*="language-"]::before,
.v-md-preview pre[class*="language-"]::before,
pre[class*="language-"]::before,
.v-md-editor__editor pre::before,
.v-md-editor__preview pre::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 10px !important;
  left: 15px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #E0443E !important;
  box-shadow: 20px 0 0 #DEA123, 40px 0 0 #1AAB29 !important;
  z-index: 1 !important;
}

/* 语法高亮颜色 - macOS Terminal 风格 */
.token.comment { color: #6A9955 !important; }
.token.string { color: #CE9178 !important; }
.token.keyword { color: #569CD6 !important; }
.token.number { color: #B5CEA8 !important; }
.token.function { color: #DCDCAA !important; }
.token.class-name { color: #4EC9B0 !important; }
.token.variable { color: #9CDCFE !important; }

/* 复制按钮样式 */
.v-md-copy-code-btn,
.copy-code-btn {
  display: block !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  color: #d4d4d4 !important;
  background-color: #2d2d2d !important;
  border: 1px solid #3d3d3d !important;
  border-radius: 4px !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
  z-index: 2 !important;
}

/* 鼠标悬停时显示复制按钮 */
pre[class*="language-"]:hover .v-md-copy-code-btn,
pre[class*="language-"]:hover .copy-code-btn {
  opacity: 1 !important;
}

.v-md-copy-code-btn:hover,
.copy-code-btn:hover {
  background-color: #3d3d3d !important;
}

/* 隐藏行号 */
.line-numbers-wrapper,
.prism-editor__line-numbers {
  display: none !important;
  width: 0 !important;
}

/* 确保代码内容不会被窗口按钮遮挡 */
.v-md-editor__editor pre code,
.v-md-editor__preview pre code,
pre[class*="language-"] code {
  display: block !important;
  width: 100% !important;
  font-family: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", monospace !important;
} 